package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.StateDurationNode;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public interface StateDurationNodeBind extends Node{
    default StateDurationNode stateDuration(String lambda){
        StateDurationNode nextNode = new StateDurationNode(lambda);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}